<?php

namespace App\Http\Controllers\Api;

use App\WhoLookMy;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;

//谁看过我
class WhoLookMyController extends Controller
{
    public function index(Request $request)
    {
        $pageSize = $request->page_size ? $request->page_size : 15;
       $list=WhoLookMy::orderBy('updated_at','desc')->where('mubiao_id',Auth::id())->with(['user','users','companyInfo','basics'])->paginate($pageSize);
       return $list;
    }
}
